﻿// =================================================================== 
// 项目说明
//====================================================================
// wup。@Copy Right 2014
// 文件： news.cs
// 项目名称：买车网
// 创建时间：2014/9/3
// 负责人：wup
// ===================================================================
using System;
using System.Collections.Generic;
using System.Text;
using Weixin.DAL.ChinaTax;
using Weixin.Entity.ChinaTax;

namespace Weixin.BLL.ChinaTax
{
    public partial class newsBLL : BaseBLL< newsBLL>

    {
        newsDataAccessLayer newsdal;
        public newsBLL()
        {
            newsdal = new newsDataAccessLayer();
        }

        public int Insert(newsEntity newsEntity)
        {
            return newsdal.Insert(newsEntity);            
        }

        public void Update(newsEntity newsEntity)
        {
            newsdal.Update(newsEntity);
        }

        public newsEntity GetAdminSingle(int newid)
        {
           return newsdal.Get_newsEntity(newid);
        }

        public IList<newsEntity> GetnewsList()
        {
            IList<newsEntity> newsList = new List<newsEntity>();
            newsList=newsdal.Get_newsAll();
            return newsList;
        }
    }
}
